<?php
    class database{
        public function connect(){  //Connect to Database            
            /*$hostname="sql5.freemysqlhosting.net";
            $user="sql561971";
            $password="iF8%tA7%";
            $dbname="sql561971";*/
            
            global $hostname;
            global $user;
            global $password;
            global $dbname;
            global $mysqli;

            $hostname="localhost";
            $user="bp_rwcp";
            $password="1885Njxa";
            $dbname="bp_rwcp";

            $mysqli=new mysqli($hostname,$user,$password,$dbname);

            $mysqli->query("SET NAMES UTF8");

            return $mysqli;
        }
    }